import { computed, onMounted, ref } from "vue"

export default function () {
  let sum = ref(0)
  let bigSum = computed(() => {
    return sum.value * 100
  })

  function add() {
    sum.value++
  }
  return {
    sum,
    bigSum,
    add,
  }
}
